| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import { BaseEndpoint } from './baseEndpoint'; |
||
| 3 | |||
| 4 | /** |
||
| 5 | * Changes Endpoint Class |
||
| 6 | */ |
||
| 7 | export class Changes extends BaseEndpoint { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Get list of changes for movies |
||
| 11 | * @returns { Promise<ChangesResponse> } |
||
| 12 | * @see https://developers.themoviedb.org/3/changes/get-movie-change-list |
||
| 13 | */ |
||
| 14 | public async movies(): Promise<ChangesResponse> { |
||
| 15 | return this.sendGetRequest('movie/changes'); |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Get list of changes for tv shows |
||
| 20 | * @returns { Promise<ChangesResponse> } |
||
| 21 | * @see https://developers.themoviedb.org/3/changes/get-tv-change-list |
||
| 22 | */ |
||
| 23 | public async tv(): Promise<ChangesResponse> { |
||
| 24 | return this.sendGetRequest('tv/changes'); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get list of changes for people |
||
| 29 | * @returns { Promise<ChangesResponse> } |
||
| 30 | * @see https://developers.themoviedb.org/3/changes/get-person-change-list |
||
| 31 | */ |
||
| 32 | public async person(): Promise<ChangesResponse> { |
||
| 33 | return this.sendGetRequest('person/changes'); |
||
| 34 | } |
||
| 37 |